<template>
    <div class="container">
        <top-cmp></top-cmp>

        <div class="info">
            <div class="userinfo">
                <div class="img">
                    <img src="../assets/img/user07.png" alt="">
                </div>
                <div class="content">
                    <div class="username">mo5841855300</div>
                    <div class="shiming">
                        <div class="id">ID 1004322751</div>
                    </div>
                </div>
                <router-link to="/home" tag="div" class="home">
                    <img src="../assets/img/user06.png" alt="">
                </router-link>
                
            </div>


            <div class="ul">
                <router-link to="/CollectionsView" class="li" tag="div">
                    <img src=""
                        alt="">
                    <div class="text">我的藏品</div>
                </router-link>
                
                <router-link to="/CollectionsView" class="li" tag="div">
                    <img src=""
                        alt="">
                    <div class="text">关注的人</div>
                </router-link>
                <router-link to="/CollectionsView" class="li" tag="div">
                    <img src=""
                        alt="">
                    <div class="text">支持项目</div>
                </router-link>
                <router-link to="/CollectionsView" class="li" tag="div">
                    <img src=""
                        alt="">
                    <div class="text">看好项目</div>
                </router-link>
            </div>

        </div>

        <div class="orderlist">
            <div class="li"><img
                    src=""
                    alt="">
                <div class="text">全部订单</div>
            </div>
            <div class="li">
                <!----><img
                    src=""
                    alt="">
                <div class="text">待付款</div>
            </div>
            <div class="li">
                <!----><img
                    src=""
                    alt="">
                <div class="text">待发货</div>
            </div>
            <div class="li">
                <!----><img
                    src=""
                    alt="">
                <div class="text">待收货</div>
            </div>
            <div class="li">
                <!----><img
                    src=""
                    alt="">
                <div class="text">退款</div>
            </div>
            <div class="li"><img
                    src=""
                    alt="">
                <div class="text">评价</div>
            </div>
        </div>


        <div class="uicon">
            <div class="li"><img
                    src=""
                    alt="">
                <div class="text">发起众筹</div>
            </div>
            <router-link to="/shoppingcarView" tag="div" class="li">
                <img
                    src=""
                    alt="">
                <div class="text">购物车</div>
            </router-link>
            <div class="li"><img
                    src=""
                    alt="">
                <div class="text">优惠券</div>
            </div>
            <div class="li"><img
                    src=""
                    alt="">
                <div class="text">收货地址</div>
            </div>
            <div class="li"><img
                    src=""
                    alt="">
                <div class="text">账户认证</div>
            </div>
            <div class="li" @click="exit"><img
                    src=""
                    alt="">
                <div class="text">退出登录</div>
            </div>
        </div>

        

    </div>
</template>

<script>
import topCmp from "../components/topCmp.vue"
export default {
    data() {
        return {
            
        };
    },
    methods:{
         exit(){
            this.$toast("退出成功！")
            setTimeout(()=>{
                window.localStorage.removeItem("token");
                window.localStorage.removeItem("userId");
                this.$router.push("/sgin")

            },1000)
        }
    },
    components: {
        topCmp
    }
}
</script>

<style lang="scss">
.info {
    margin-top: 60px;
    height: 154px;
    background: linear-gradient(90deg, #00e475, #00e4cf 21%, #0ac4d8);
    opacity: .7;

    .userinfo {
        width: 90%;
        // position: absolute;
        // top: 65px;
        padding-left: 16px;
        display: flex;
        align-items: center;

        .img {
            width: 57px;
            height: 57px;
            border-radius: 50%;
            border: 2px solid #fff;

            img {
                width: 100%;
                border-radius: 50%;
            }
        }

        .content {
            margin-left: 12px;
            flex: 1;

            .username {
                height: 17px;
                font-size: 14px;
                font-weight: 600;
                color: #1a1a1a;
                line-height: 17px;
                margin-bottom: 12px;
            }

            .shiming {
                display: flex;
                align-items: center;

                .id {
                    padding: 0 10px;
                    height: 25px;
                    background: hsla(0, 0%, 100%, .5);
                    border-radius: 3px;
                    padding-left: 15px;
                    font-size: 12px;
                    font-weight: 400;
                    color: #7f7f7f;
                    line-height: 25px;
                    display: inline-block;
                }
            }
        }

        .home {
            width: 48px;
            height: 48px;

        }
    }

    .ul {
        padding: 0 15px;
        display: flex;
        justify-content: space-between;

        .li {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 60px;
            text-align: center;

            img {
                width: 40px;
                height: 40px;
                margin-bottom: 8px;
            }

            .text {
                height: 12px;
                font-size: 12px;
                font-weight: 400;
                color: #1a1a1a;
            }
        }
    }
}

.orderlist {
    position: relative;
    width: 340px;
    height: 90px;
    background: #fff;
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;

    .li {
        display: flex;
        flex-direction: column;
        align-items: center;

        .text {
            font-size: 12px;
        }

    }
}

.uicon {
    position: relative;
    width: 350px;
    height: max-content;
    background: #fff;
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    padding-left: 10px;
    padding-top: 10px;

    .li {
        padding-right: 20px;

        img {
            width: 60px;
            height: 60px;
        }

        .text {
            font-size: 12px;
            text-align: center;
        }
    }
}
</style>